package com.dayaokeji.rhythmschoolstudent.client.home.course.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.utils.SignUtils;
import com.dayaokeji.server_api.domain.Member;

/**
 * Created by Gorden on 2017/10/17.
 * 学生管理列表Adapter
 */

public class StudentListAdapter extends BaseQuickAdapter<Member,BaseViewHolder> {

    public StudentListAdapter() {
        super(R.layout.item_student_management, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, Member item) {
        helper.setText(R.id.tv_name,mContext.getString(R.string.member_name,item.getName()));
        helper.setText(R.id.tv_sign_status, SignUtils.getSignStatus(item.getSignStatus()));
    }
}
